package cn.wolfcode.luowowo.article.query;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Setter
@Getter
public class Travelcondtion {
    //按时间
    public static final HashMap<Integer,Travelcondtion> dayMap = new HashMap<>();

    //按人均花费
    public static final HashMap<Integer,Travelcondtion> preExpendMap = new HashMap<>();

    public static final HashMap<Integer,Travelcondtion> travelTimeMap = new HashMap<>();


   static {
       dayMap.put(-1,null);
       dayMap.put(1,new Travelcondtion(0,3));
       dayMap.put(2,new Travelcondtion(4,7));
       dayMap.put(3,new Travelcondtion(8,14));
       dayMap.put(4,new Travelcondtion(15,Integer.MAX_VALUE));


       preExpendMap.put(-1,null);
       preExpendMap.put(1,new Travelcondtion(1,999));
       preExpendMap.put(2,new Travelcondtion(1000,6000));
       preExpendMap.put(3,new Travelcondtion(6001,20000));
       preExpendMap.put(4,new Travelcondtion(20001,Integer.MAX_VALUE));

       travelTimeMap.put(-1,null);
       travelTimeMap.put(1,new Travelcondtion(1,2));
       travelTimeMap.put(2,new Travelcondtion(3,4));
       travelTimeMap.put(3,new Travelcondtion(5,6));
       travelTimeMap.put(4,new Travelcondtion(7,8));
       travelTimeMap.put(5,new Travelcondtion(9,10));
       travelTimeMap.put(6,new Travelcondtion(11,12));
   }

    private  int min;
    private  int max;

    public Travelcondtion(int min,int max){
        this.min = min;
        this.max = max;
    }

}
